﻿namespace ProjetoModeloDDD.Application
{
    using ProjetoModeloDDD.Application.Interface;
    using ProjetoModeloDDD.Domain.Entities;
    using ProjetoModeloDDD.Domain.Interfaces.Services;
    using System.Collections.Generic;

    /// <summary>
    /// A classe especializada de servico cliente.
    /// </summary>
    public class ClienteAppService : AppServiceBase<Cliente>, IClienteAppService
    {
        private readonly IClienteService _clienteService;

        public ClienteAppService(IClienteService clienteService)
            : base(clienteService)
        {
            this._clienteService = clienteService;
        }

        public IEnumerable<Cliente> ObterClientesEspeciais()
        {
            return this._clienteService.ObterClientesEspeciais(this._clienteService.GetAll());
        }
    }
}